package com.becca.cake.service.recommend;

import java.util.List;
import java.util.Map;

import com.becca.cake.core.exception.ServiceException;
import com.becca.cake.model.goods.GoodsRecommendModel;

/**
 * 
 * 商品推荐Service接口
 * @copyright  尊星(上海)信息科技有限公司
 * @author 
 * @date 2016年6月2日 下午7:07:13
 */
public interface IRecommendService {
    /**
     * 商品推荐查询
     * @param map
     * @return
     * @throws ServiceException
     */
    List<GoodsRecommendModel> selectRecommend(Map<String, Object> map) throws ServiceException;
    
    /**
     * 获取商品推荐总条数
     * @param map
     * @return
     * @throws ServiceException
     */
    Long selectRecommendCount(Map<String, Object> map) throws ServiceException;
    
    /**
     * 批量修改排序
     * @param map
     * @throws Exception
     */
    void updateOrders(String list)throws ServiceException;
    
    /**
     * 推荐或取消推荐
     * @param map
     * @throws ServiceException
     */
     void updateRecommendStatusById (Integer recommendId,Integer status,Integer recommendisHot,String trueName) throws ServiceException;
     
     /**
      * 热门或取消热门
      * @param map
      * @throws ServiceException
      */
      void updateRecommendIsHotById (Map<String, Object> map) throws ServiceException;
      
      /**
       * 添加商品推荐信息
       * @param GoodsRecommendModel
       * @throws ServiceException
       */
      void insertRecommend(GoodsRecommendModel goodsRecommendModel,String trueName) throws ServiceException;

}
